package conf

type Config struct {
	Sql struct {
		Type     string `yaml:"Type"`
		DataBase string `yaml:"DataBase"`
		Port     int    `yaml:"Port"`
		User     string `yaml:"User"`
		Pass     string `yaml:"Pass"`
		Host     string `yaml:"Host"`
		LogMode  bool   `yaml:"LogMode"`
	} `yaml:"MySql"`
	Server struct {
		Port       string `yaml:"Port"`
		SetMode    string `yaml:"SetMode"`
		DomainName string `yaml:"DomainName"`
		WxYanZheng string `yaml:"WxYanZheng"`
	} `yaml:"Server"`
	LogConfig struct {
		Filename   string `yaml:"Filename"`
		MaxSize    int    `yaml:"MaxSize"`
		MaxBackups int    `yaml:"MaxBackups"`
		MaxAge     int    `yaml:"MaxAge"`
	} `yaml:"LogConfig"`
	File struct {
		Size int `yaml:"Size"`
	} `yaml:"File"`
	WxOfficialAccount struct {
		AppID     string `yaml:"AppID"`
		AppSecret string `yaml:"AppSecret"`
	} `yaml:"WxOfficialAccount"`
	WxApp struct {
		AppID     string `yaml:"AppID"`
		AppSecret string `yaml:"AppSecret"`
	} `yaml:"WxApp"`
	XiaoEr struct {
		XiaoEAppId     string `yaml:"XiaoEAppId"`
		XiaoEClientId  string `yaml:"XiaoEClientId"`
		XiaoEAppSecret string `yaml:"XiaoEAppSecret"`
		XiaoEGrantType string `yaml:"XiaoEGrantType"`
	} `yaml:"XiaoEr"`
	WxJsApi struct {
		Appid                      string `yaml:"Appid"`
		MchID                      string `yaml:"MchID"`
		MchCertificateSerialNumber string `yaml:"MchCertificateSerialNumber"`
		MchAPIv3Key                string `yaml:"MchAPIv3Key"`
		WechatpayPublicKeyID       string `yaml:"WechatpayPublicKeyID"`
	} `yaml:"WxJsApi"`
}
